// Login: alcappmobile@gmail.com
// Pass:  piss12345

package com.appspot.alcappmobile;

import java.io.IOException;
import javax.servlet.http.*;

@SuppressWarnings("serial")
public class ListenForRestClientServlet extends HttpServlet
{
    public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException
    {
    	String start = "<html>";
    	String title = "<title>ALC APP</title>";
    	String header = "<h1><center>Alcohol Data Table</center></h1>";
    	String TableStart = "<table border=\"2\" cellpadding=\"1\" cellspacing=\"1\" bordercolor=\"#000000\" width=\"30%\">";
    	String Andy = "<tr><th>Andy</th><th>Time (minutes)</th></tr>" + "<tr><td>shot</td><td>1215</td></tr>"
    			+ "<tr><td>beer</td><td>1217</td></tr>" + "<tr><td>beer</td><td>1236</td></tr>" + "<tr><td>beer</td><td>1248</td></tr></table>";
    	String Navid = "<tr><th>Navid</th><th>Time (minutes)</th></tr>" + "<tr><td>beer</td><td>1387</td></tr>" 
    			+ "<tr><td>shot</td><td>1400</td></tr>" + "<tr><td>shot</td><td>1405</td></tr>" + "<tr><td>shot</td><td>1415</td></tr>"
    			+ "<tr><td>shot</td><td>1415</td></tr>" + "<tr><td>shot</td><td>1427</td></tr>" + "<tr><td>shot</td><td>1455</td></tr></table>";
        String Joe = "<tr><th>Joe</th><th>Time (minutes)</th></tr>" + "<tr><td>wine</td><td>1170</td></tr>" 
        		+ "<tr><td>wine</td><td>1207</td></tr>" + "<tr><td>wine</td><td>1265</td></tr>" + "<tr><td>shot</td><td>1294</td></tr></table>";
      	String end = "</html>";
    	
    	String br = "<br>";
    	
        
        //resp.setContentType("text/plain");
    	//String message = "NAVID IS GOOD";
        //resp.getWriter().println("You said: " + message);     
        // if (req.getParameterMap().containsKey("message"))
        //    message = req.getParameter("message");
 
        resp.getWriter().println(start);
        resp.getWriter().println(title);
        resp.getWriter().println(header);
        resp.getWriter().println(TableStart);
        resp.getWriter().println(Andy);
        resp.getWriter().println(br);
        resp.getWriter().println(TableStart);
        resp.getWriter().println(Navid);
        resp.getWriter().println(br);
        resp.getWriter().println(TableStart);
        resp.getWriter().println(Joe);
        resp.getWriter().println(br);
        resp.getWriter().println(end);
        
        
    }
}